Represents a layout to organize children of a component. More...
Public Member Functions | |
| Layout (System *system) noexcept | |
| virtual | ~Layout () |
| Component * | getParentComponent () const |
| System * | getSystem () const |
| LAYOUT_TYPE | getType () const |
| virtual void | setParentComponent (Component *parent) |
| virtual void | removeComponent (Component *component)=0 |
| virtual void | exportClassToTree (nkExport::Node *rootNode) override |
| virtual void | exportComponentsNodeEntry (nkExport::Node *rootNode) |
| virtual void | importClassFromTree (nkExport::Node *rootNode) override |
| virtual void | processComponentsNodeEntry (nkExport::Node *rootNode) |
| virtual void | update ()=0 |
Public Member Functions inherited from nkExport::Exportable | |
| Exportable () noexcept | |
| virtual | ~Exportable () |
Represents a layout to organize children of a component.
|
noexcept |
Constructor.
| system | The parent system in which the layout will live. |
|
virtual |
Destructor.
| Component* nkWinUi::Layout::getParentComponent | ( | ) | const |
| System* nkWinUi::Layout::getSystem | ( | ) | const |
| LAYOUT_TYPE nkWinUi::Layout::getType | ( | ) | const |
|
virtual |
Sets the component holding the layout.
| parent | The component holding the layout. |
Reimplemented in nkWinUi::GridLayout, and nkWinUi::RelativeLayout.
|
pure virtual |
Removes a child component from this layout.
| component | The component to remove from this layout. |
Implemented in nkWinUi::GridLayout, and nkWinUi::RelativeLayout.
|
overridevirtual |
Basic export capabilities.
| rootNode | The node in which the layout will be exported. |
Implements nkExport::Exportable.
Reimplemented in nkWinUi::GridLayout.
|
virtual |
Exports a component within the layout into a tree.
| rootNode | The node in which the component will be exported. |
Reimplemented in nkWinUi::GridLayout, and nkWinUi::RelativeLayout.
|
overridevirtual |
Basic importing capabilities.
| rootNode | The tree to import from. |
Implements nkExport::Exportable.
Reimplemented in nkWinUi::GridLayout.
|
virtual |
Imports a component within the layout into a tree.
| rootNode | The tree to import the component from. |
Reimplemented in nkWinUi::GridLayout, and nkWinUi::RelativeLayout.
|
pure virtual |
Updates the layout. Can be called because of a resize for instance.
Implemented in nkWinUi::GridLayout, and nkWinUi::RelativeLayout.